package ticketonline.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="TB_Ticket")
public class Ticket {
	
	@Id
	@Column(name="ticket_id", length=10, nullable=false)
	private String kode;
	
	@Column(name="hall_name", length=255, nullable=false)
	private String hallName;
	
	@Column(name="seat_name", length=255, nullable=false)
	private String seat;
	
	@Column(name="price", nullable=false)
	private BigDecimal price;
	
	public String getKode() {
		return kode;
	}
	
	public void setKode(String kode) {
		this.kode = kode;
	}
	
	public String getHallName() {
		return hallName;
	}
	
	public void setHallName(String hallName) {
		this.hallName = hallName;
	}
	public String getSeat() {
		return seat;
	}
	
	public void setSeat(String seat) {
		this.seat = seat;
	}
	
	public BigDecimal getPrice() {
		return price;
	}
	
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
}
